import {Component, Input} from "@angular/core";
import {UserService} from "../../services/user.service";

@Component({
  selector: 'app-title',
  templateUrl: './title.component.html',
  styleUrls: ['./title.component.css']
})
export class TitleComponent {
  @Input() subtitle = '(v2)'
  title = 'Angular Modules'
  user = ''

  constructor(userService: UserService) {
    this.user = userService.userName
  }
}
